#ifndef CNNINFO_H
#define CNNINFO_H
#include <QString>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QJsonObject>

class CnnInfo
{
public:
    CnnInfo();

private:
    int         m_nPartWidth;
    int         m_nPartHeight;
    QString     m_strONNXmodelPath;

public:
    QString     GetONNXModelPath(){return m_strONNXmodelPath;}
    int         GetPartWidth(){return m_nPartWidth;}
    int         GetPartHeight(){return m_nPartHeight;}

public:
    bool writeXML(const QXmlStreamWriter &writer);
    bool ReadXML(QXmlStreamReader &reader);

    QJsonObject toJson();
    void    fromJson(QJsonObject obj);
};

#endif // CNNINFO_H
